import request from "@/utils/request";

//获取机器人速度信息
export function API_moveSpeed(data) {
  return request({
    url: "/robot.monitor/robot.speed.info.get",
    params: data,
    method: "get",
  });
}
//获取机器人位置信息
export function API_positionInfo(data) {
  return request({
    url: "/robot.monitor/robot.position.info.get",
    params: data,
    method: "get",
  });
}
//获取可见光相机实时状态
export function API_cameraInfo(data) {
  return request({
    url: "/robot.monitor/camera.info.get",
    params: data,
    method: "get",
  });
}
//获取任务信息
export function API_taskInfo(data) {
  return request({
    url: "/robot.monitor/task.info.get",
    params: data,
    method: "get",
  });
}
//获取任务信息
export function API_envInfo(data) {
  return request({
    url: "/robot.monitor/env.info.get",
    params: data,
    method: "get",
  });
}
//获取温度、湿度信息
export function API_humTempInfo(data) {
  return request({
    url: "/robot.monitor/temp.info.get",
    params: data,
    method: "get",
  });
}
//获取下一个任务信息
export function API_nextTaskInfo(data) {
  return request({
    url: "/robot.monitor/next.task.info.get",
    params: data,
    method: "get",
  });
}
//获取电池状态
export function API_batteryInfo(data) {
  return request({
    url: "/robot.monitor/battery.info.get",
    params: data,
    method: "get",
  });
}

//头部信息
export function API_topInfo(data) {
  return request({
    url: "/robot/top.info.get",
    params: data,
    method: "get",
  });
}
// 巡检点列表查询
export function API_getRobotIP(data) {
  return request({
    url: "/robot/robot.config.get",
    params: data,
    method: "get",
  });
}
//摄像头控制
export function API_cameraControl(data) {
  return request({
    url: "/robot.monitor/camera.control",
    data,
    method: "post",
  });
}
//机器人控制
export function API_robotSetting(data) {
  return request({
    url: "/robot.monitor/robot.setting",
    data,
    method: "post",
  });
}
//机器人任务控制
export function API_taskControl(data) {
  return request({
    url: "/robot.monitor/task.control",
    data,
    method: "post",
  });
}
//地图信息
export function API_mapInfo() {
  return request({
    url: "/robot.monitor/map.info.get",
    method: "get",
    timeout: 60000,
  });
}
//重定位
export function API_relocate(data) {
  return request({
    url: "/robot.monitor/robot.relocate",
    method: "post",
    data,
  });
}
//机器人移动
export function API_robotMove(data) {
  return request({
    url: "/robot.monitor/robot.control",
    data,
    method: "post",
  });
}
//升降臂
export function API_robotArm(data) {
  return request({
    url: "/robot.monitor/arm.control",
    data,
    method: "post",
  });
}
//云台控制
export function API_robotYunTai(data) {
  return request({
    url: "/robot.monitor/yuntai.control",
    data,
    method: "post",
  });
}
//摄像头控制
// export function API_cameraControl(data) {
//   return request({
//     url: "/robot.monitor/camera.control",
//     data,
//     method: "post",
//   });
// }
// 获取巡检结果
export function API_getpatrolResult(data) {
  return request({
    url: "/robot.monitor/patrol.result.info.get",
    params: data,
    method: "get",
  });
}
// 获取巡检对象告警
export function API_getalarmInfo(data) {
  return request({
    url: "/robot.monitor/patrol.alarm.info.get",
    params: data,
    method: "get",
  });
}
//获取环境告警
export function API_getenvAlarminfo(data) {
  return request({
    url: "/robot.monitor/env.alarm.info.get",
    params: data,
    method: "get",
  });
}
//获取系统告警
export function API_getsystemAlarminfo(data) {
  return request({
    url: "/robot.monitor/system.alarm.info.get",
    params: data,
    method: "get",
  });
}
//获取机器人任务模式
export function API_getRobotRunMode(data) {
  return request({
    url: "/parameters/getParameter/runMode",
    params: data,
    method: "get",
  });
}
//获取实时音频分析的显示隐藏
export function API_realTimeAudio(data) {
  return request({
    url: "/parameters/getParameter/realTimeAudio",
    params: data,
    method: "get",
  });
}
//获取是否支持气象站
export function API_getWeatherStation(data) {
  return request({
    url: "/parameters/getParameter/weatherStationSupport",
    params: data,
    method: "get",
  });
}
// 机器人控制按钮显示、隐藏接口
export function API_getParameters(data) {
  return request({
    url: "/parameters/getParameters",
    params: data,
    method: "get",
  });
}
//版本信息
export function API_versionCopy(data) {
  return request({
    url: "/robot/robot.version.get",
    params: data,
    method: "get",
  });
}
//获取系统时间
export function API_getTime(data) {
  return request({
    url: "/robot/system.time.get",
    params: data,
    method: "get",
  });
}

//双向对讲
export function API_talk(type) {
  return request({
    url: "/robot.monitor/talk",
    method: "get",
    params: type,
  });
}
//重启视频流
export function API_restartVideo(data) {
  return request({
    url: "/robot.monitor/restartVideo",
    data,
    method: "post",
  });
}
//综合告警
export function API_synthAlarm(type) {
  return request({
    url: "/alarm.record/comprehensive.alarm.info.get",
    method: "get",
    params: type,
  });
}
//更新地图
export function API_updateBg(data) {
  return request({
    url: "/robot.monitor/map.background.update",
    data,
    method: "post",
  });
}
//获取机械臂状态
export function API_armStatus(data) {
  return request({
    url: "/robot.monitor/arm.motor.status",
    data,
    method: "post",
  });
}
//机械臂控制
export function API_armControl(data) {
  return request({
    url: "/robot.monitor/arm.motor.control",
    data,
    method: "post",
  });
}
//机械臂归零
export function API_armGotoZero(data) {
  return request({
    url: "/robot.monitor/arm.goto.zero",
    data,
    method: "post",
  });
}
//机械臂归零
export function API_flashLedControl(data) {
  return request({
    url: "/robot.monitor/flash.led.control",
    data,
    method: "post",
  });
}
//获取温度、湿度信息
export function API_newTempInfo(data) {
  return request({
    url: "/robot.monitor/new.temp.info.get",
    params: data,
    method: "get",
  });
}
